<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-21
 * Time: 16:49
 */

namespace app\common\model\mysql;
use think\Model;

class YwOtherConfig extends Model
{
    protected $name = 'yw_other_config';

    // 设置字段信息
    protected $schema = [
        //定义字段开始
        'id'          => 'int',//主键
        'service_phone'        => 'string', //客服电话
        //定义字段结束
    ];

    /*
     * 获取单条数据
     */
    public static function getOne(){
        return self::where(['id'=>1])->find();
    }

}